package yy.yyds.org.mapper;


import yy.yyds.org.domain.Employee;

import yy.yyds.org.query.EmployeeQuery;


import java.util.List;

public interface EmployeeMapper {
    void add(Employee employee);

    void delete (Long id);

    void update(Employee employee);

    Employee loadOne(Long id);

    List<Employee> loadAll();
    /*下面两个是分页查询所需方法*/
    /*查询总条数*/
    Integer queryCount(EmployeeQuery query);
    /*查询当前页的数据*/
    List<Employee>queryList(EmployeeQuery employeeQuery);
    void batchDelete(List<Long> ids);
}
